<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="js/vue.js"></script>
</head>

<body>

    <div id="app">
        <input type="button" value="click me!!!" v-on:click="handle()">
        <!-- 简写 -->
        <input type="button" value="click me!!!" @click="handle()">
    </div>

</body>
<script>
    new Vue(
        {
            el: "#app",
            data: {
            },
            // 定义方法
            methods: {
                handle: function () {
                    console.log("Oh! You clicked!!!");
                }
            },
        }
    )
</script>

</html>